﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Tencent.OA.Banche.App.Proxy
{
    /// <summary>
    /// 代理类管理Module
    /// </summary>
    public class ProxyFactoryModule : IHttpModule
    {
        #region IHttpModule 成员

        public void Dispose()
        {
        }

        public void Init(HttpApplication context)
        {
            context.EndRequest += new EventHandler(ReleaseProxy);
        }

        #endregion

        /// <summary>
        /// 销毁全部客户端代理类
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void ReleaseProxy(object sender, EventArgs e)
        {
            ProxyFactory.DistoryAllProxy();
        }
    }
}
